/*Author: Rony Lahav (ID:043489889)*/

/**
 * Activates the Idle command by adding idleTime till next command is executed
 */
public class CmdIdle implements ICmd{

	private long idleTime;
	
	public CmdIdle(String idleTime){
		this.idleTime=Long.parseLong(idleTime);
	}
	
	//Executes Idle command for "idleTime" time
	public void executeCmd(){
		if (!final_project.isShutDown())
			final_project.updateIdleTimes(idleTime);
	}
}
